import $ from '../common';
Page({
  data: {
    titleHeight: $.gData().titleHeight,
    statuHeight: $.gData().statuHeight,
    // perlist:[
    //   {name:'李力',isbuy:false},
    //   {name:'草草',isbuy:true},
    //   {name:'张小贝',isbuy:false},
    //   {name:'李础',isbuy:true},
    //   {name:'李流',isbuy:true},
    // ],
    info:{}
  },
  // 去往课时信息
  goclasstimeinfo(){
    $.navigateTo(`/classaboutPart/classtimeinfo?group_uuid=${this.data.group_uuid}`)
  },
  getinfo(){
    const {group_uuid}=this.data
    $.get('/teacher/groups/detail',{group_uuid},res=>{
      this.setData({
        info:res.group
      })
    })
  },
  onLoad(e) {
    const {uuid}=e
    this.setData({
      group_uuid:uuid
    })
    this.getinfo()
  },
  onShow() {}
})